package com.patent.service.impl;

import com.patent.dao.AuthCodeInfoMapper;
import com.patent.domain.po.AuthCodeInfo;
import com.patent.service.AuthCodeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service("authCodeService")
@Transactional
public class AuthCodeServiceImpl implements AuthCodeService {

	private static final Logger log = LoggerFactory.getLogger(AuthCodeServiceImpl.class);

	@Resource(name="authCodeInfoMapper")
	private AuthCodeInfoMapper authCodeInfoMapper;

	@Override
	public AuthCodeInfo queryAuthCodeInfo(String userMobile) {
		return authCodeInfoMapper.queryAuthCodeInfo(userMobile);
	}

	@Override
	public void insertSelective(AuthCodeInfo saveAuthCodeInfo) {
		authCodeInfoMapper.insertSelective(saveAuthCodeInfo);
	}
}
